2000W / 48V LLC Battery-Charger  V1.00
xmc_flash.h
Go to the documentation of this file.
1 
50 #ifndef XMC_FLASH_H
51 #define XMC_FLASH_H
52 
53 /*********************************************************************************************************************
54  * HEADER FILES
55  ********************************************************************************************************************/
56 
57 #include "xmc_common.h"
58 
59 #if UC_FAMILY == XMC1
60  #include "xmc1_flash.h"
61 #endif
62 
63 #if UC_FAMILY == XMC4
64  #include "xmc4_flash.h"
65 #endif
66 
97 /*******************************************************************************
98  * API PROTOTYPE
99  *******************************************************************************/
100 #ifdef __cplusplus
101 extern "C" {
102 #endif
103 
124 void XMC_FLASH_ClearStatus(void);
125 
150 uint32_t XMC_FLASH_GetStatus(void);
151 
165 void XMC_FLASH_EnableEvent(const uint32_t event_msk);
166 
180 void XMC_FLASH_DisableEvent(const uint32_t event_msk);
181 
212 void XMC_FLASH_ProgramPage(uint32_t *address, const uint32_t *data);
213 
242 void XMC_FLASH_EraseSector(uint32_t *address);
243 
259 {
260  return (bool)(XMC_FLASH_GetStatus() & XMC_FLASH_STATUS_BUSY);
261 }
262 
263 #ifdef __cplusplus
264 }
265 #endif
266 
275 #endif
276 
void XMC_FLASH_EraseSector(uint32_t *address)
Definition: xmc1_flash.c:241
void XMC_FLASH_ProgramPage(uint32_t *address, const uint32_t *data)
Definition: xmc1_flash.c:249
void XMC_FLASH_ClearStatus(void)
Definition: xmc1_flash.c:85
uint32_t XMC_FLASH_GetStatus(void)
Definition: xmc1_flash.c:93
void XMC_FLASH_DisableEvent(const uint32_t event_msk)
Definition: xmc1_flash.c:109
__STATIC_INLINE bool XMC_FLASH_IsBusy(void)
Definition: xmc_flash.h:258
void XMC_FLASH_EnableEvent(const uint32_t event_msk)
Definition: xmc1_flash.c:101
#define __STATIC_INLINE
Definition: cmsis_gcc.h:47